
-- 查询队伍信息 
CG_TEAM_LIST_QUERY = {}

SimpleTeamMember = {
    {"uuid",			1,				"string"},									-- 队伍成员 uuid
    {"hp",				1,				   "int"},									-- 队伍成员hp
    {"hpMax",			1,				   "int"},									-- 队伍成员最大hp
    {"mapID",			1,				   "int"},									-- 队伍成员所在地图id
	{"x",				1,				   "int"},									-- 队伍成员坐标x
	{"y",				1,				   "int"},									-- 队伍成员坐标y
}

TeamMember = {
    {"id",				1,				   "int"},									-- 队伍成员id 如果obj不存在 这个id为 -1
    {"uuid",			1,				"string"},									-- 队伍成员 uuid
    {"leader",    1,           "bit", 1},               -- 是否leader
    {"online",			1,				   "int"},									-- 是否在线
    {"away",			1,				   "int"},									-- 是否在线
    {"afk",				1,				   "int"},									-- 是否暂离
    {"name",			1 ,				"string"},									-- 队伍成员名字
    {"sex",       1,           "bit", 2},               -- 队伍成员性别      
    {"level",			1,				   "int"},									-- 队伍成员等级
    {"mapID",			1,				   "int"},									-- 队伍成员所在地图id
    {"sceneID",			1,				   "int"},									-- 队伍成员所在场景id
	{"x",				1,				   "int"},									-- 队伍成员坐标x
	{"y",				1,				   "int"},									-- 队伍成员坐标y
    {"hp",				1,				   "int"},									-- 队伍成员hp
    {"mp",				1,				   "int"},									-- 队伍成员mp
    {"hpMax",			1,				   "int"},									-- 队伍成员最大hp
    {"mpMax",			1,				   "int"},									-- 队伍成员最大mp
    {"buff",			16,					require("buffer.Proto").BufferData},	--buffer	
    {"shenbingName", 1,         "string"},      -- 神兵名称
    {"yellowVipLv", 1,     "bit", 4}, --黄钻等级
    {"yellowYearVip", 1,   "bit", 1}, --是否是年费黄钻, 1是，0 不是
    {"blueVipLv", 1,     "bit", 4}, --黄钻等级
    {"blueYearVip", 1,   "bit", 1}, --是否是年费黄钻, 1是，0 不是
    {"blueSuperVip", 1, "bit", 1},--是否是超级蓝钻, 1是，0 不是
    {"level3366",    1,  "int", 1}, --3366等级
    {"args", 1, "int"}
}

-- 队伍信息返回
GC_TEAM_LIST = {
	{"members",				5,	     TeamMember},				-- 队伍成员信息
}

-- 邀请组队
CG_TEAM_INVITE = {
    {"targetUuid",			1 ,			"string"},				-- 被邀请者uuid
}

-- 通知被邀请者有人邀请他组队
GC_TEAM_INVITE_NOTIFY = {
    {"invitorName",			1 ,			"string"},				-- 邀请者角色名
    {"invitorUuid",			1 ,			"string"},				-- 邀请者uuid
    {"invitorID",			1,			   "int"},				-- 邀请者id
    {"vipLv",           1,       "int"},        --vip
    {"lv",              1,       "int"},        --等级             
    {"sex",       1,           "bit", 2},               -- 队伍成员性别      
    {"targetName",			1 ,			"string"},				-- 被邀请者名字
    {"targetUuid",			1 ,			"string"},				-- 被邀请者uuid
    {"targetID",			1,			   "int"},				-- 被邀请者id
}

-- 被邀请者应答组队请求
CG_TEAM_INVITE_NOTIFY_RET = {
	{"result",				1,			    "int"},				-- 应答结果
	{"invitorUuid",			1 ,			 "string"},				-- 邀请者角uuid
	{"targetUuid",			1 ,			 "string"},				-- 被邀请者uuid
}

--离开队伍
CG_TEAM_EXIT = {}

GC_TEAM_EXIT = {
	{"exitName",			1 ,				"string"},			-- 离开队伍者姓名
	{"exitUuid",			1 ,				"string"},			-- 离开队伍者uuid
	{"newLeaderName",		1 ,				"string"},			-- 队长姓名
	{"newLeaderUuid",		1 ,				"string"},			-- 队长uuid
}

GC_TEAM_DISCONNECT = {
	{"name",				1 ,				"string"},			-- 断线者姓名
	{"uuid",				1 ,				"string"},			-- 断线者uuid
}

-- 创建队伍
CG_TEAM_CREATE = {}

-- 解散队伍
CG_TEAM_DISMISS = {}

GC_TEAM_DISMISS = {}

--T人
CG_TEAM_MEMBER_KICK = {
    {"name",				1 ,			"string"},		-- 被踢的队员name
    {"uuid",				1 ,			"string"},		-- 被踢的队员uuid
}

--T人
GC_TEAM_MEMBER_KICK = {
    {"name",				1 ,			"string"},		-- 被踢的队员name
    {"uuid",				1 ,			"string"},		-- 被踢的队员uuid
}

--队长移交
CG_TEAM_LEADER_CHANGE = {
	{"targetUuid",			1,			"string"},		-- 目标uuid
}

--组队buff查询
CG_TEAM_BUFF_QUERY = {}

-- 组队buff
GC_TEAM_BUFF_QUERY = {
	{"roleExpRate",			1,				"double"}, -- 经验加成率
	{"roleLvRate",			1,				"double"}, -- 角色等级加成率
}

-- 简单数据广播
GC_TEAM_SIMPLE_LIST = {
	{"member",				1,	     SimpleTeamMember},			-- 队伍成员信息
}


LW_TEAM_CHAT = {
  {"msg_type", 1, "int"},
  {"role_name", 1 , "string"},
  {"obj_id", 1, "int"},
  {"uuid", 1, "string"},
  {"msg", 1  , "string"}, 
}



CG_TEAM_GET_SCENE = { --获得同场景的人
}
scenePer ={
  {"name", 1, "string"},  --名字
  {"uuid", 1, "string"},     --id
  {"sbName", 1, "string"},  --神兵id  
  {"lv", 1, "int"},    --等级
  {"isTeam", 1, "int"},--是否组队,0未组队，1已组队
}
GC_TEAM_SEND_SCENE_PER ={
  {"list", 30, scenePer}
}
